<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script type="text/javascript">
			// var innerHtmlDiv = document.getElementById("innerHtmlDivId");
			// innerHtmlDiv.innerHTML = "<span style='color:red;'>InnerHtml</span>";
			// 在页面加载完之后触发这个onload方法
			window.onload = function() {
				var innerHtmlDiv = document.getElementById("innerHtmlDivId");
				innerHtmlDiv.innerHTML = "<span style='color:red;'>InnerHtml</span>";
			}
		</script>
	</head>
	<body>
		<div id="innerHtmlDivId"></div>
	</body>
</html>
